package org.yray.neo4j.hanlp;

import com.hankcs.hanlp.seg.common.Term;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

@Data
@AllArgsConstructor
public class QuestionResp {
    private QuestionEntity questionEntity;
    private List<Term> termList;

    @Override
    public String toString()
    {
        StringBuilder sb=new StringBuilder();
        sb.append("t=[");
        termList.forEach(v->{
            sb.append(v.word).append(",");
        });
        sb.append("]\n");
        sb.append(questionEntity);
        return sb.toString();
    }
}
